.class Lcom/TwinBlade/PicturePassword/b;
.super Landroid/telephony/PhoneStateListener;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/AService;


# direct methods
.method constructor <init>(Lcom/TwinBlade/PicturePassword/AService;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/b;->a:Lcom/TwinBlade/PicturePassword/AService;

    .line 279
    invoke-direct {p0}, Landroid/telephony/PhoneStateListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onCallStateChanged(ILjava/lang/String;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 282
    if-ne p1, v2, :cond_1

    .line 283
    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/bl;->c(Z)V

    .line 284
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 285
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v3}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/TwinBlade/PicturePassword/bl;->f(Z)V

    .line 286
    const-string v0, "Call receive suspend"

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Ljava/lang/String;)V

    .line 296
    :cond_0
    :goto_0
    return-void

    .line 288
    :cond_1
    if-nez p1, :cond_2

    .line 289
    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/bl;->c(Z)V

    .line 290
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/b;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "LockAfterCall"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 291
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v3}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/TwinBlade/PicturePassword/bl;->e(Z)V

    goto :goto_0

    .line 293
    :cond_2
    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    .line 294
    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/bl;->c(Z)V

    goto :goto_0
.end method
